<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改职务信息')" />
    <!-- html模块 -->
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-duties-edit" th:object="${vtspDuties}">
            <input name="dutiesId" th:field="*{dutiesId}" type="hidden">
            <!-- 修改所需信息 -->
            <div class="form-group">
                <label class="col-sm-3 control-label">职务名称：</label>
                <div class="col-sm-8">
                    <input name="dutiesName" th:field="*{dutiesName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">状态：</label>
                <div class="col-sm-8">
                    <select name="state" class="form-control" th:with="type=${@dict.getType('sys_state_id')}">
                        <option value="">请选择</option>
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
                                th:value="${dict.dictValue}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <textarea name="memo" class="form-control">[[*{memo}]]</textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <!-- JS模块 -->
    <script type="text/javascript">
        var prefix = ctx + "vtsp/duties";
        $("#form-duties-edit").validate(
            {
            focusCleanup: true
            });
        //提交修改数据
        function submitHandler()
        {
            if ($.validate.form())
            {
                $.operate.save(prefix + "/edit", $('#form-duties-edit').serialize());
            }
        }
    </script>
</body>
</html>